  <div role="main" id="sbody">
  	<!--Тело-->
	
	<div id="slider">
		<div class="slide"><a href="/about/" style="cursor:pointer;"><img src="<?php echo $design_path;?>images/slider-1.png" alt=""></a></div>
	</div>
  	
  	<div id="docs">
  		<div class="item">
  			<a href="/docs/c-normativ/" title="Нормативные документы"><img src="<?php echo $design_path;?>images/docs-h-norma.png" alt="Нормативные документы"></a>
  			<div class="dtext">
  				<ul>
  				<?php
				$rnme="docs";
				$maurl="docs";
				$rnme_url="docs";
				
				$lit[0]=0;
				$lit[1]=3;
				//$lit="";
					
				$oder=$razdel[$rnme]['conf-order'];
				//$CatID=$def_CatID;
				$CaD=1;
					
				$Neata = GetElementsByCatID($rnme, $CaD, $oder, $lit);
				//print_r($Neata);
				//echo('123');
				//$NewsData = GetElementsByCatArray($rname, $CatID, $order, $limit);
				if (!empty($Neata))	{
				//$num=count($NewsData);
				$i=1;
				
				foreach ($Neata as $Nwus) {
					?>
  					<li><b>&raquo;</b>&nbsp;<a class="docs" href="<?=$Nwus['docfile']?>"><?php 
				echo substr($Nwus['title'], 0, 85)."..."; 
				//echo($Nwus['title'])?></a></li>
  					<?php
				}//foreach
				}//!empty
				?>	
  				</ul>
				<a href="/docs/c-normativ/">Подробнеее</a>&nbsp;<b>&raquo;</b>
  			</div>
  		</div>
  		<div class="item">
  			<a href="/docs/c-dogovor/" title="Договора и дополнительные соглашения"><img src="<?php echo $design_path;?>images/docs-h-dogovor.png" alt="Договора и дополнительные соглашения"></a>
  			<div class="dtext">
  				<ul>
  				<?php
				$rnme="docs";
				$maurl="docs";
				$rnme_url="docs";
				
				$lit[0]=0;
				$lit[1]=3;
				//$lit="";
					
				$oder=" docdate";
				//$CatID=$def_CatID;
				$CaD=2;
					
				$Neata = GetElementsByCatID($rnme, $CaD, $oder, $lit);
				//print_r($Neata);
				//echo('123');
				//$NewsData = GetElementsByCatArray($rname, $CatID, $order, $limit);
				if (!empty($Neata))	{
				//$num=count($NewsData);
				$i=1;
				
				foreach ($Neata as $Nwus) {
					?>
  					<li><b>&raquo;</b>&nbsp;<a class="docs" href="<?=$Nwus['docfile']?>"><?php 
				echo substr($Nwus['title'], 0, 85)."..."; 
				//echo($Nwus['title'])?></a></li>
  					<?php
				}//foreach
				}//!empty
				?>	
  				</ul>
				<a href="/docs/c-dogovor/">Подробнеее</a>&nbsp;<b>&raquo;</b>
  			</div>
  		</div>
  		<div class="item">
  			<a href="/docs/c-tarifs/" title="Тарифы на электричество"><img src="<?php echo $design_path;?>images/docs-h-tarif.png" alt="Тарифы на электричество"></a>
  			<div class="dtext">
  				<ul>
  				<?php
				$rnme="docs";
				$maurl="docs";
				$rnme_url="docs";
				
				$lit[0]=0;
				$lit[1]=3;
				//$lit="";
					
				$oder=$razdel[$rnme]['conf-order'];
				//$CatID=$def_CatID;
				$CaD=3;
					
				$Neata = GetElementsByCatID($rnme, $CaD, $oder, $lit);
				//print_r($Neata);
				//echo('123');
				//$NewsData = GetElementsByCatArray($rname, $CatID, $order, $limit);
				if (!empty($Neata))	{
				//$num=count($NewsData);
				$i=1;
				
				foreach ($Neata as $Nwus) {
					?>
  					<li><b>&raquo;</b>&nbsp;<a class="docs" href="<?=$Nwus['docfile']?>"><?php 
				echo substr($Nwus['title'], 0, 85)."..."; 
				//echo($Nwus['title'])?></a></li>
  					<?php
				}//foreach
				}//!empty
				?>
  				</ul>
				<a href="/docs/c-tarifs/">Подробнеее</a>&nbsp;<b>&raquo;</b>
  			</div>
  		</div>
  		<div class="item">
  			<a href="/docs/c-information/" title="Информация для раскрытия"><img src="<?php echo $design_path;?>images/docs-h-info.png" alt="Информация для раскрытия"></a>
  			<div class="dtext">
  				<ul>
  				<?php
				$rnme="docs";
				$maurl="docs";
				$rnme_url="docs";
				
				$lit[0]=0;
				$lit[1]=3;
				//$lit="";
					
				$oder=$razdel[$rnme]['conf-order'];
				//$CatID=$def_CatID;
				$CaD=4;
					
				$Neata = GetElementsByCatID($rnme, $CaD, $oder, $lit);
				//print_r($Neata);
				//echo('123');
				//$NewsData = GetElementsByCatArray($rname, $CatID, $order, $limit);
				if (!empty($Neata))	{
				//$num=count($NewsData);
				$i=1;
				
				foreach ($Neata as $Nwus) {
					?>
  					<li><b>&raquo;</b>&nbsp;<a class="docs" href="<?=$Nwus['docfile']?>"><?php 
				echo substr($Nwus['title'], 0, 85)."..."; 
				//echo($Nwus['title'])?></a></li>
  					<?php
				}//foreach
				}//!empty
				?>
  				</ul>
				<a href="/docs/c-information/">Подробнеее</a>&nbsp;<b>&raquo;</b>
  			</div>
  		</div>
  		
  	</div>
  	<div clas="clearfix"></div>
  	
	<div id="vopros">
		<div class="director">	
			<div class="vtit"><a href="/priemnaya/" title="Задай вопрос генеральному директору"><img src="<?php echo $design_path;?>images/h-vopros.png" alt="Задай вопрос генеральному директору"></a></div>
			<div class="vtext">
				<a href="/priemnaya/" class="vimg"><img src="<?php echo $design_path;?>/images/foto-director.jpg" alt="Директор" /></a>
				<?php
				$rsname="html";
					
				$iText=GetElementByName ($rsname, "question", "uname", "");
				
				if (!empty($iText)) {
					$iTitle=$iText['title'];
					$iTex=$iText['htmltext'];
					//echo $iTitle;
					echo $iTex;
				}//if
				else { 
					$iTitle="";
					$iTex="";
				}
				?>
			</div>
		</div>
		<div class="info">
			<div class="itit"><a href="/docs/c-helpful-information/" title="Полезная информация"><img src="<?php echo $design_path;?>images/h-info.png" alt="Полезная информация"></a></div>
			<div class="iinfo">
				<ul>
  				<?php
				$rnme="docs";
				$maurl="docs";
				$rnme_url="docs";
				
				$lit[0]=0;
				$lit[1]=3;
				//$lit="";
					
				$oder=$razdel[$rnme]['conf-order'];
				//$CatID=$def_CatID;
				$CaD=5;
					
				$Neata = GetElementsByCatID($rnme, $CaD, $oder, $lit);
				//print_r($Neata);
				//echo('123');
				//$NewsData = GetElementsByCatArray($rname, $CatID, $order, $limit);
				if (!empty($Neata))	{
				//$num=count($NewsData);
				$i=1;
				
				foreach ($Neata as $Nwus) {
					?>
  					<li><b>&raquo;</b>&nbsp;<a class="docs" href="<?=$Nwus['docfile']?>"><?php 
				echo substr($Nwus['title'], 0, 85)."..."; 
				//echo($Nwus['title'])?></a></li>
  					<?php
				}//foreach
				}//!empty
				?>
  				</ul>
				<a href="/docs/c-helpful-information/">Подробнеее</a>&nbsp;<b>&raquo;</b>
			</div>
		</div>
	</div>
  	
	<!--Тело-->
  </div>
  <div class="clearfix"></div>